package beans.aplicacao;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import javax.faces.bean.ManagedBean;

import dao.aplicacao.MarcasDao;

import modelos.aplicacao.MarcasModel;

@ManagedBean(name = "marcasBean")
public class MarcasBean {
	
	private ArrayList<MarcasModel> marcas;
	
	private MarcasDao dao = new MarcasDao();
	
	public List<MarcasModel> getMarcas() throws SQLException{
				
		marcas = dao.getMarcas();
		return marcas;

	}
}
